#-*- coding:utf-8 -*-
# Author:Ami
# import  json
import pickle
def sayhi(name):
    print("hello",name)

info = {
    'name':'ami',
    'age':22,
   'func':sayhi
}
f= open("test.test","wb")
# f.write(str(info))
# f.write(json.dumps(info))
f.write(pickle.dumps(info))
f.close()